export function AjaxRequest(url, params, query = 'id') {
    
    params = params ? `&${query}=${params}` : '';

    async function result() {
        console.log('url',url)
        console.log('params',params)
        
        let response = await fetch(`https://service-h0rrbmro-1308151379.gz.apigw.tencentcs.com/release/api/web/${url}?projectId=17${params}`)

        let res = await response.json();

        return res.data;
    };

    return result();
};
